# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-ntlm
pkgver=1.1.0
pkgrel=4
pkgdesc='Python clients running on any operating system to provide NTLM authentication to a supporting server.'
arch=('any')
url='http://code.google.com/p/python-ntlm'
license=('GPL')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/source/p/python-ntlm/python-ntlm-$pkgver.tar.gz")
sha512sums=('6d8d8bfe3912bf863cdffb7f62633235cbacc9711cae643d0492450e610b02e6fbfaed11da6e0dff5e0ca20df32d241844354b122b14a57658c76321dc0f0742')

build() {
  cd "python-ntlm-$pkgver"

  python2 setup.py build
}

package() {
  cd "python-ntlm-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

